package com.lz.code.feign.provider.server.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuzhi
 * @description
 * @date 2022/3/5 10:19
 */
@RestController
@Slf4j
public class HelloController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/hello")
    public String hello() {
        log.info(String.format("provider. port:%s", port));
        return "hello";
    }

}
